package net.huashitong.Indicators.dao;

import java.util.List;

import net.huashitong.Indicators.entity.EarlyWarning;

import org.springframework.stereotype.Repository;

import com.sirdc.modules.core.dao.GenericQuery;
import com.sirdc.modules.core.dao.StringDao;

@Repository
public class EarlyWarningDao extends StringDao<EarlyWarning>{

	public List<EarlyWarning> queryByCreate() {
		GenericQuery query = createQuery("obj");
		query.append("group by indicatorId ORDER BY createDate DESC");
		return query.listResult();
	}

}
